package com.ad.pet.app.main.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ad.pet.R;
import com.ad.pet.common.data.utils.glide.GlideUtil;
import com.ad.pet.models.remote.home.BenfitNewUser;

import java.util.List;

/**
 * Created by SEELE on 2019/7/5.
 */

public class NewUserBenfitAdapter extends BaseQuickAdapter<BenfitNewUser, BaseViewHolder> {


    public NewUserBenfitAdapter(@Nullable List<BenfitNewUser> data) {
        super(R.layout.item_send_good_layout,data);
    }



    @Override
    protected void convert(BaseViewHolder helper, BenfitNewUser item) {

        ImageView imageView = helper.getView(R.id.iv_good_head);
        TextView  tvTitle = helper.getView(R.id.tv_title);

        tvTitle.setText(item.getTitle());
        GlideUtil.load(mContext,item.getImg(),imageView);

    }
}
